package com.stm.bi.enums;


import com.stm.framework.annotation.EnumValue;

/**
 * @author zyp
 * @ClassDesc 方针推移类型
 * @date 2025/09/10 9:20
 **/
@EnumValue
public enum PolicyEvolveType {
    CORE_MARKET("core_market", "核心市场方针"),
    INDUSTRY_RESOURCES("industry_resources", "顾客行业方针"),
    CUSTOMER_LEVEL("customer_level", "顾客等级方针"),
    CUSTOMER_FEATURES("customer_features", "新老顾客方针"),
    PRODUCT_CATEGORY("product_category", "商品分类方针"),
    PRODUCT_FEATURE("product_feature", "新老商品方针");

    /**
     * 字段类型值
     */
    @EnumValue
    private final String value;
    /**
     * 字段类型描述
     */

    private final String desc;

    PolicyEvolveType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static PolicyEvolveType getPolicyEvolveType(String value) {
        for (PolicyEvolveType ut : PolicyEvolveType.values()) {
            if (ut.getValue().equals(value)) {
                return ut;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return desc;
    }
}
